package com.haiyou.dc.netty.mapper;

import com.haiyou.common.base.BaseMapper;
import com.haiyou.dc.netty.entity.ImChat;
import com.haiyou.dc.netty.entity.vo.ImChatVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author root
 * @date 2020-02-29 22:49:56
 */
@Mapper
public interface ImChatMapper extends BaseMapper<ImChat> {
    /**
     * 获取聊天记录
     *
     * @param sender
     * @param list
     * @return
     */
    List<ImChatVO> selectMessage(@Param("sender") String sender, @Param("list") List<Object> list);
}